<script setup>
import { ref, computed } from 'vue'

const score = ref([98, 88, 78, 66, 76, 86, 50, 100])
const goodScore = computed(() => {
  console.log('执行了')
  return score.value.filter(item => item >= 90)
})
// const badScore = computed({
//   get() {
//     return 10
//    },
//   set(value) {
//     // 业务处理...
//    }
// })
</script>

<template>
  <div>
    <div>成绩数组: {{ score }}</div>
    <div>好的成绩: {{ goodScore }}</div>
    <div>好的成绩: {{ goodScore }}</div>
    <div>好的成绩: {{ goodScore }}</div>
    <div>好的成绩: {{ goodScore }}</div>
    <div>好的成绩: {{ goodScore }}</div>
    <div>好的成绩: {{ goodScore }}</div>
    <div>好的成绩: {{ goodScore }}</div>
    <div>好的成绩: {{ goodScore }}</div>
  </div>

</template>

<style scoped></style>
